package com.huibo.aigou.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.huibo.aigou.base.bo.AjaxResult;
import com.huibo.aigou.domain.ProductType;
import com.huibo.aigou.service.ProductTypeService;

@RestController
@RequestMapping("/productType")
public class ProductTypeController {
	
	@Autowired
	private ProductTypeService productTypeService;
	
	@GetMapping("/selectTree")
	public List<ProductType> selectTree() {
		return productTypeService.selectTree();
	}
	
	@GetMapping("/pageHome")
	public AjaxResult writePageHome() {
		return productTypeService.writePageHome();
	}

}
